import request from '@/utils/request'

// 查询仓库管理员列表
export function listWarehouseKeeper(query) {
  return request({
    url: '/module/warehouseKeeper/list',
    method: 'get',
    params: query
  })
}

// 查询仓库管理员详细
export function getWarehouseKeeper(id) {
  return request({
    url: '/module/warehouseKeeper/' + id,
    method: 'get'
  })
}

// 新增仓库管理员
export function addWarehouseKeeper(data) {
  return request({
    url: '/module/warehouseKeeper',
    method: 'post',
    data: data
  })
}

// 修改仓库管理员
export function updateWarehouseKeeper(data) {
  return request({
    url: '/module/warehouseKeeper',
    method: 'put',
    data: data
  })
}

// 删除仓库管理员
export function delWarehouseKeeper(id) {
  return request({
    url: '/module/warehouseKeeper/' + id,
    method: 'delete'
  })
}
